package com.itlong.cloud.noncore.property;

import com.itlong.cloud.POJO.DTO.property.PropertySMSAccountInfoDTO;
import com.itlong.cloud.POJO.DTO.property.PropertySMSOverviewDTO;
import com.itlong.cloud.POJO.VO.property.PropertySMSAccountInfoVO;
import com.itlong.cloud.POJO.VO.property.PropertySMSOverviewVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *  短信概览 服务接口协议提供对象.
 * </desc>
 *
 * @createDate 2017-10-19
 */
@FeignClient(name = "non-core-service")
public interface IPropertySMSOverviewServiceClient {

    /**
     * <desc>
     *      分页获取 短信概览
     * <desc/>
     *
     * @param pageDTO 分页获取 参数
     * @return
     * @author ZiXuan
     * @createDate 2017-10-19
     */
    @RequestMapping(path = "/settings/smsOverview/getPage",method = {RequestMethod.POST})
    Page<PropertySMSOverviewVO> getPage(@RequestBody PropertySMSOverviewDTO pageDTO) throws Exception;

    /**
     * <desc>
     *     短信统计
     * <desc/>
     *
     * @param pageDTO   信息DTO
     * @return
     * @author ZiXuan
     * @createDate 2017-10-23
     */
    @RequestMapping(path = "/settings/smsOverview/getSMSAccountInfo",method = {RequestMethod.POST})
    PropertySMSAccountInfoVO getSMSAccountInfo(@RequestBody PropertySMSAccountInfoDTO pageDTO) throws Exception;
}
